package com.oauth.server;

public interface OAuthService {

    void addAuthCode(String authCode,String username);

    void addAccessToken(String accessToken , String username);

    boolean checkAuthCode(String authCode);

    boolean checkAuthToken(String authToken);

    String getUsernameByAuthCode();

    String getUsernameByAccessToken();

    long getExpireIn();

    boolean checkClientId(String clientId);

    boolean checkClientSecret(String clientSecret);
}
